package com.magnificent.atlantis.client.robot.ui.configure.table.renderer;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;

/**
 * User: Babanin
 * Date: Sep 22, 2009
 * Time: 12:02:17 PM
 */
public class CheckBoxCellRenderer extends JCheckBox implements TableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        this.setSelected((Boolean) value);
        setHorizontalAlignment(JLabel.CENTER);

        return this;
    }
}